<template>
	<view class="outBox">
		<u-navbar leftText="社区成员" leftIconColor="#fff" :autoBack="true" bgColor="#242331">
			<view class="left-slot" slot="left">
				 <u-icon name="arrow-left" color="#fff"></u-icon>
				<text>社区成员</text>
			</view>
		</u-navbar>
		<view class="content" :style="{
			marginTop:menuHeight + 10+ 'px',
				minHeight:` calc(100vh - ${menuHeight}px)`
		}">
			<image class="bg" :src="baseImgUrl + 'reservation/banner.png'" mode="scaleToFill"></image>
			<view class="item">
				<view class="left">
					<view class="name">
						团队名字：必胜队
					</view>
				</view>
				<view class="right">

				</view>
			</view>

			<view class="item">
				<view class="left">
					<view class="name">
						团员
					</view>
				</view>
				<view class="right">
					<view class="value">
						业绩
					</view>
				</view>
			</view>

			<view class="item">
				<view class="left">
					<view class="name">
						张三（组长）
					</view>
				</view>
				<view class="right">
					<view class="value">
						8万
					</view>
				</view>
			</view>
			<view class="item">
				<view class="left">
					<view class="name">
						张三
					</view>
				</view>
				<view class="right">
					<view class="value">
						8万
					</view>
				</view>
			</view>
			<view class="item">
				<view class="left">
					<view class="name">
						张三
					</view>
				</view>
				<view class="right">
					<view class="value">
						8万
					</view>
				</view>
			</view>
			<view class="item">
				<view class="left">
					<view class="name">
						张三
					</view>
				</view>
				<view class="right">
					<view class="value">
						8万
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import {
		getWXStatusHeight
	} from '@/utils/index.js'
	export default {
		data() {
			return {
				// 胶囊的宽度
				barWidth: 0,
				menuHeight: 0,
				selectTime: '2024-1', // 月份
				options: [{
						value: "2024-1",
						label: "2024-1"
					},
					{
						value: "2024-2",
						label: "2024-2"
					},
					{
						value: "2024-3",
						label: "2024-3",
					}
				],
				// 显示规则
				showRule: false,
			}
		},
		onLoad() {
			let obj = getWXStatusHeight()
			this.barWidth = obj.barWidth + 3
			this.menuHeight = obj.menuHeight
		},
		methods: {
			changeTime(e) {
				this.selectTime = e
			},
			handleShowRule() {
				this.showRule = true
			}
		}
	}
</script>

<style lang="scss" scoped>
	.title {
		font-size: 40rpx;
		margin-bottom: 30rpx;
		color: #fff;
	}

	.items {
		.item {
			display: flex;
			justify-content: space-between;
			color: #fff;
			border-bottom: 1rpx solid #383946;
			padding-bottom: 10rpx;
			margin-bottom: 20rpx;

			.name {
				text-align: center;
				width: 300rpx;
			}

			.right {
				width: 300rpx;
				text-align: center;

				.value {
					margin-right: 10rpx;
				}

				.red {
					color: #f93f3f;
				}

				.btns {
					margin-top: 0;
					width: 220rpx;
					justify-content: flex-end;

					.btn {
						margin-left: 20rpx;
						padding: 5rpx 20rpx;
						border-radius: 30rpx;
					}
				}
			}
		}
	}

	.flex {
		display: flex;

		text {
			margin-right: 10rpx;
		}
	}

	.ruleBox {
		width: 80vw;
		padding: 30rpx;
		box-sizing: border-box;

		.list {
			margin-top: 20rpx;
		}
	}

	.topFilter {
		display: flex;
		justify-content: space-between;
		align-items: center;

		.right {
			text {
				font-size: 26rpx;
				margin-left: 20rpx;
				color: #76d60e;
			}
		}
	}

	.selectTime {
		width: 200rpx;

	}

	.list {
		margin-top: 40rpx;
		color: #fff;

		.item {
			display: flex;
			justify-content: space-between;
			height: 100rpx;
			align-items: center;
			color: #fff;
			padding: 0 40rpx;
			background-color: #0e0d15;
			border-radius: 20rpx;
			margin-top: 30rpx;

			.left {
				display: flex;
				justify-content: center;
				flex-direction: column;

				.time {
					font-size: 22rpx;
					color: #8b8b8b;
				}
			}
		}

		.tit {
			margin-top: 40rpx;
		}
	}

	.btns {
		display: flex;
		justify-content: center;
		margin-top: 50rpx;
		position: relative;
		z-index: 99;

		.btn {
			padding: 10rpx 30rpx;
			color: #fff;
			border-radius: 10rpx;
			font-size: 26rpx;
			background-color: #5aa10c;
		}
	}

	.bg {
		width: 100%;
		height: 100%;
		position: absolute;
		z-index: 2;
	}


	.content {
		position: relative;
		margin: 40rpx;
		box-sizing: border-box;
		min-height: calc(100vh - 40rpx);

		.item {
			position: relative;
			z-index: 3;
			padding: 15px 30rpx;
			border-bottom: 1rpx solid #454b56;
		}

		.name {
			display: flex;
			align-items: center;
		}

		.value {
			color: #fff;
			text-align: right;
		}

		.item {
			display: flex;
			justify-content: space-between;
			color: #fff;
		}
	}

	.left-slot {
		color: #fff;

		image {
			width: 40rpx;
			margin-right: 30rpx;
		}
	}

	.item {
		display: flex;
		justify-content: space-between;
		color: #fff;
		border-bottom: 1rpx solid #383946;
		padding-bottom: 10rpx;
		margin-top: 20rpx;

		.right {
			display: flex;
			align-items: center;

			.value {
				margin-right: 10rpx;
			}

			.red {
				color: #f93f3f;
			}

			.btns {
				margin-top: 0;
				width: 230rpx;
				justify-content: flex-end;

				.btn {
					margin-left: 20rpx;
					padding: 5rpx 20rpx;
					border-radius: 30rpx;
				}
			}
		}
	}

	.outBox {
		background-color: #242331;
	}
</style>
